package com.badlogic.androidgames.framework;

import com.badlogic.androidgames.framework.impl.AndroidGame;

import android.inputmethodservice.KeyboardView.OnKeyboardActionListener;

public abstract class Screen {
    protected final Game game;

    public Screen(Game game) {
        this.game = game;
    }

	public Game getGame() {
		return game;
	}
    
    public abstract void update(float deltaTime);

    public abstract void present(float deltaTime);

    public abstract void pause();

    public abstract void resume();

    public abstract void dispose();
    
    // Add start	Dao		24/11/2012
    public void showKeyboard(OnKeyboardActionListener listener) {
    	((AndroidGame)game).showKeyboard(listener);
    }
    
    public void hideKeyboard() {
    	((AndroidGame)game).hideKeyboard();
    }
    // Add end		Dao		24/11/2012
}
